# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-initial-setup
pkgver=42.1.1
pkgrel=0
pkgdesc="A simple, easy,and safe way to prepare a new system"
url="https://wiki.gnome.org/Design/OS/InitialSetup"
# limited by gnome-shell and mutter
arch="all !s390x !riscv64"
license="GPL-2.0-or-later"
depends="gsettings-desktop-schemas iso-codes dbus:org.freedesktop.Secrets"
makedepends="meson cheese-dev ibus-dev networkmanager-dev polkit-dev
	accountsservice-dev gnome-desktop-dev fontconfig-dev libgweather4-dev
	gtk+3.0-dev gnome-online-accounts-dev gdm-dev geocode-glib-dev
	geoclue-dev rest-dev libpwquality-dev webkit2gtk-dev libsecret-dev
	libnma-dev krb5-dev libhandy1-dev"
options="!check" # no tests
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/gnome-initial-setup/${pkgver%%.*}/gnome-initial-setup-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Dsystemd=false \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
aa56a7dd87054a5e1f53d9fad5d151c191ba4b25f22d53140f52fb31ce73025594cd5f421bca650cd7ce12651cf3961a7c9e3ebb1e55bce493d73ac5c28be5c9  gnome-initial-setup-42.1.1.tar.xz
"
